import request from '@/axios'
// 列表接口
export const getPageList = (params: any) => {
  return request.get({ url: '/product-sku/list', params })
}

// 详情接口
export const getProductDetail = (id: any) => {
  return request.get({ url: '/product-sku/' + id })
}

// 新增接口
export const addProduct = (data: any) => {
  return request.post({ url: '/product-sku/create', data })
}
// 编辑接口
export const editProduct = (id: number, data: any) => {
  return request.post({ url: '/product-sku/update/' + id, data })
}

export const deleteProduct = (id: number) => {
  return request.post({ url: '/product-sku/delete/' + id })
}
